package org.rc.util;

import cn.hutool.crypto.digest.DigestUtil;
import org.apache.commons.lang3.StringUtils;

public class Md5Util {
    public static String encrypt(String str){
        if(StringUtils.isEmpty(str)){
            return "";
        }
        return DigestUtil.md5Hex(str);
    }

    public static void main(String[] args) {
        System.out.println(encrypt("abc123"));
    }
}
